package com.hushao.lims.weblims.service;

import com.hushao.lims.weblims.domain.ClassroomInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Map;


/**
 * @author 930588706
 * @date 18/1/21
 * 教室
 */
public interface ClassroomService {

    /**
     * 根据教室名称模糊查询教室列表（分页）
     * @param classroomName
     * @param pageable
     * @return
     */
    Page<ClassroomInfo> listClassroomByName(String classroomName, Pageable pageable);

    /**
     * 根据ID查教室
     * @param classroomId
     * @return
     */
    ClassroomInfo getById(Integer classroomId);

    /**
     * 修改或增加教室
     * @param classroom
     * @param teacherNumber
     * @return
     * @throws Exception
     */
    String saveOrUpdate(ClassroomInfo classroom, String teacherNumber)throws Exception;
    /**
     * 删除教室
     * @param classroomId
     * @throws Exception
     */
    void remove(Integer classroomId)throws Exception;

    /**
     * 课程
     * @param classroom
     * @return
     * @throws Exception
     */
    Map<String, Map<String, String>> timetables(ClassroomInfo classroom)throws Exception;


}
